#ifndef MAINWINDOW31_H
#define MAINWINDOW31_H

#include <QPixmap>
#include <QMainWindow>
#include <QTextEdit>

#include "gui/PlayArea.h"
#include "gui/GUIGameManager.h"
#include "AgentGenome.h"

class MainWindow31 : public QMainWindow
{
  Q_OBJECT

  public:
    MainWindow31(QWidget *parent = 0);
    ~MainWindow31();

  public slots:
    void startNewGame();
    void loadAgents();

  private slots:
    void gameCompleted();
    void deleteGame();

  private:
    void setupMenus();
    void setupWidgets();
    void setupPlayers();
    Player* getAgentPlayer(int);
    void buildGameConnections();

    bool haveGame;
    bool gameIsConnected;
    int humanPosition;
    AgentGenome* agentTemplate;
    Player* players[NUM_PLAYERS];
    GUIGameManager* game;
    PlayArea* playArea;
    QTextEdit* messageText;
    QPushButton* knockButton;

    int numGames;
    int numWins;
    int streak;

};

#endif // MAINWINDOW31_H